<!--底部-->
    <div class="all_foot">
    	<div class="container">
    		<div class="left_foot">
	    		<p><{$config->company_name}></p>
	    		<p>地址：<{$config->contact_addr}></p>
	    		<p>电话：<{$config->tel}></p>
	    		<p>邮箱：<{$config->admin_email}></p>
	    	</div>
	    	<div class="right_foot">
	    		<span class="name">友情链接</span>
	    		<{foreach from=$linklist item=link}>
	    			<a href="<{$link->link_url}>"><{$link->link_name}></a>
	    		<{/foreach}>
	    	</div>
    	</div>
    	<div class="foot_company hidden-xs">
    		<p><{$config->copright}></p>
    	</div>
    </div>
    <!--底部-->
    
    <!--悬浮-->
    <div class="suspend hidden-xs">
    	<ul>
    		<li class="need_btn"><span>需求<br />提交</span></li>
    		<li class="wechat"><img src="/skin/front/default/images/1_07.png"/>
    		<div class="wechat_box">
    			<img src="<{$config->company_qrcode}>" width="120px" height="120px"/>
    			<span>官方微信</span>
    		</div>
    		</li>
    		<li id="go_top"><img src="/skin/front/default/images/1_08.png"/></li>
    	</ul>
    </div>
    <!--悬浮-->
    
    <!--需求弹框-->
    <div class="need_box">
    	<div class="need_bg"></div>
    	<div class="box hidden-xs">
    		<div class="head">
    			<span>免费预约</span>
    			<img src="/skin/front/default/images/1_10.png" class="close"/>
    		</div>
			<!--需求提交form -->
			<form action="/message/save" method='post' id='messageform'>
				<div class="content">
	    			<ul>
	    				<li>
	    					<span class="name">业务：</span>
	    					<{foreach from=$ywClass item=voyw key=vok}>
	    						<label class="check_box">
		    						<input type="radio"  name='ywtype' value='<{$vok}>' class="ywtype"/>
		    						<{$voyw}>
		    					</label>
	    					<{/foreach}>
	    				</li>
	    				<li>
	    					<span class="name">面积：</span>
	    					<{foreach from=$ywSize item=vov key=vokk}>
	    						<label class="check_box">
		    						<input type="radio"  name='size' value='<{$vokk}>' class="size" />
		    						<{$vov}>
		    					</label>
	    					<{/foreach}>
	    				</li>
	    				<li>
	    					<span class="name">姓名：</span><input type="text"class="text nickname" name='nickname' />
	    					<span class="name">电话：</span><input type="text"class="text phone" name='phone' />
	    				</li>
	    				<li>
	    					<span class="name">公司：</span><input type="text"class="text company" name='company' />
	    					<span class="name">地址：</span><input type="text"class="text address" name='address' />
	    				</li>
	    				<div class="submit_box">
	    					<input   value="申请提交"  class="submit"/>
	    				</div>
	    			</ul>
	    		</div>
			</form>
    	</div>
		<!--手机端需求提交 -->
    	<div class="box_768 visible-xs">
    		<div class="head">
    			<span>免费预约</span>
    			<img src="/skin/front/default/images/1_10.png" class="close"/>
    		</div>
    		<form action="/message/save" method='post' id='messageform1'>
	    		<div class="content">
	    			<ul>
	    				<li>
	    					<span class="name">业务：</span>
	    					<select class="select" name="ywtype" id="ywtypeselect">
	    						<{foreach from=$ywClass item=voyw key=vok}>
	    							<option value="<{$vok}>"><{$voyw}></option>
	    						<{/foreach}>
	    					</select>
	    				</li>
	    				<li>
	    					<span class="name">面积：</span>
	    					<select class="select" name="size" id="sizeselect">
	    						<{foreach from=$ywSize item=vov key=vokk}>
	    							<option value="<{$vokk}>"><{$vov}></option>
	    						<{/foreach}>
	    					</select>
	    				</li>
	    				<li>
	    					<span class="name">姓名：</span><input type="text"class="text nickname" name='nickname'/>   					
	    				</li>
	    				<li>
	    					<span class="name">电话：</span><input type="text"class="text phone" name='phone'/>
	    				</li>
	    				<li>
	    					<span class="name">公司：</span><input type="text"class="text company" name='company'/>
	    				</li>
	    				<li>
	    					<span class="name">地址：</span><input type="text"class="text address" name='address'/>
	    				</li>
	    				<div class="submit_box">
	    					<input  type="button"  value="申请提交"  class="submit"/>
	    				</div>
	    			</ul>
	    		</div>
    		</form>
    	</div>
    </div>
    <!--需求弹框-->
    
    <!--768以下底部-->
    <div class="foot_768 visible-xs">
    	<ul>
    		<li><a href="tel:<{$config->tel}>"><img src="/skin/front/default/images/1_13.png"/>手机</a></li>
    		<li class="need_btn"><img src="/skin/front/default/images/1_14.png"/>需求提交</li>
    		<li id="go_top2"><img src="/skin/front/default/images/1_15.png"/>顶部</li>
    	</ul>
    </div>
    <!--768以下底部-->
    
        <div style="display:none">
    	  <{$config->count_code}>
    </div>
    
    <script type="text/javascript" src="/skin/front/default/js/check.js" ></script>
    <script>
    	$(document).ready(function () {
    		$(".check_box").CheckBox();
    		//pc 提交需求ajax
    		$('#messageform .submit').click(function(){
    			//数据验证
    			if(pccheckform()){
    				$('#messageform').submit() ;
    			}
    		})
    		$('#messageform1 .submit').click(function(){
    			//数据验证
    			if(mobilecheckform()){
    				$('#messageform1').submit() ;
    			}
    		})
    		
    	})
    	//pc数据验证
    	function pccheckform()
    	{
    		//业务
    		var ywnum = 0 ;
    		$('#messageform .ywtype').each(function(){
    			if($(this).is(':checked')){
    				ywnum ++ ;
    			}
    		})
    		if(ywnum==0){
    			alert('请选择业务！'); return false ;
    		}
    		//面积
    		var sizenum = 0 ;
    		$('#messageform .size').each(function(){
    			if($(this).is(':checked')){
    				sizenum ++ ;
    			}
    		})
    		if(sizenum==0){
    			alert('请选择面积！'); return false ;
    		}
    		var nickname = $('#messageform .nickname').val() ;
    		if(nickname == '' || nickname == undefined){
    			alert('请输入姓名！'); return false ;
    		}
    		var phone = $('#messageform .phone').val();
    		if(phone == '' || phone == undefined){
    			alert('请输入电话！'); return false ;
    		}
    		var company = $('#messageform .company').val() ;
    		if(company == '' || company == undefined){
    			alert('请输入公司！'); return false ;
    		}
    		var address= $('#messageform .address').val() ;
    		if(address == '' || address == undefined ){
    			alert('请输入地址！'); return false ;
    		}
    		return true ;
    	}
    	
    	
    	//手机端数据验证
    	function mobilecheckform()
    	{
    		//业务
    		if($('#ywtypeselect option:selected').val()==''){
    			alert('请选择业务！'); return false ;
    		}
    		
    		//面积
    		
    		if($('#sizeselect option:selected').val()==''){
    			alert('请选择面积！'); return false ;
    		}
    		
    		var nickname = $('#messageform1 .nickname').val() ;
    		if(nickname == '' || nickname == undefined){
    			alert('请输入姓名！'); return false ;
    		}
    		var phone = $('#messageform1 .phone').val();
    		if(phone == '' || phone == undefined){
    			alert('请输入电话！'); return false ;
    		}
    		var company = $('#messageform1 .company').val() ;
    		if(company == '' || company == undefined){
    			alert('请输入公司！'); return false ;
    		}
    		var address= $('#messageform1 .address').val() ;
    		if(address == '' || address == undefined ){
    			alert('请输入地址！'); return false ;
    		}
    		return true ;
    	}
    	
    </script>
  </body>
</html>
